<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript">
			
			window.onload=function{ 
				var box1 = document.getElementById("box1");
				box1.style.left="100px";
			}
		</script>
	</head>
	<body>
		<button type="button" id="btn1">按钮</button>
		<div id="box1" style="width:100px;height: 100px;background-color:orange;position:absolute;">
			
		</div>
	</body>
</html>
